package user

import (
	"context"
	userRepo "git.mycaigou.com/gfyx/micro-gfyx-api/infrastructure/repository/base/user"
	"github.com/gin-gonic/gin"
)

type UserSerivceIface interface {
	// 获取用户信息
	GetUserInfoByGlobalUserId(ctx context.Context, globalUserId string) (*userRepo.UserLoginInfo, error)
	// 获取用户信息
	GetUserInfoByOpenId(ctx context.Context, openId string) (*userRepo.UserLoginInfo, error)
	UserLogin(ctx context.Context, tenantCode, account, password string) (*userRepo.UserLoginInfo, error)
	UserLogout(ctx *gin.Context, token string) error
	SsoLogin(ctx *gin.Context, accessToken string) (token string, err error)
	// 验证token
	VerifyToken(ctx context.Context, token string) (info *userRepo.UserInfo, tenantInfo *userRepo.TenantUnionInfo, err error)
	////同步全量租户用户
	//SyncAllUser(ctx context.Context, tenantCode string, pagesize int32) (bool, error)
	////增量同步用户
	//IncrSyncUser(ctx context.Context, tenantCode, operation string, userList []IncrUnionUserInfo) (bool, error)
	////同步单租户用户
	//SyncTenantUser(ctx context.Context, tenantCode string, pagesize int32) (bool, error)
	//// 用户申请信息
	//UserApply(ctx context.Context, mobile string) error
}
